<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * Class AppVersion - 应用版本
 *
 * @property string $password
 *
 * @package App\Models
 */
class AppVersion extends Model
{
    protected static $unguarded = true;

    protected $table = 'app_versions';

    const PLATFORM_IOS = 1;
    const PLATFORM_ANDROID = 2;

    const VALID_PLATFORMS = [
        self::PLATFORM_IOS,
        self::PLATFORM_ANDROID,
    ];

    protected $casts = [
        'force_update' => 'int',
        'size'         => 'int',
        'platform'     => 'int',
    ];
}
